package com.crdeng.business.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.crdeng.business.entity.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crdeng.business.vo.ProductStockVO;
import com.crdeng.system.entity.User;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author crdeng
 * @since 2020-12-19
 */
public interface ProductMapper extends BaseMapper<Product> {


    /**
     * 分页条件查询
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<ProductStockVO> findProductStocks(IPage<ProductStockVO> page, @Param(Constants.WRAPPER) Wrapper<Product> queryWrapper);


}
